// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import VRouter from 'vue-router'
import Apple from './components/apple.vue'
import Banana from './components/banana.vue'
import RedApple from './components/redapple'

const router = new VueRouter
Vue.use(VRouter)

let router = new VRouter({
  mode:'history',
  routes:[

  {
    path:'/apple',
    component:Apple
  },
  {
    path:'/banana',
    component: Banana
  }
    ]
})

new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})
